<template>
  <div>
    <!-- <el-dropdown>
      <el-button type="primary">
        全部状态
        <i class="el-icon-arrow-down el-icon--right"></i>
      </el-button>
      <el-dropdown-menu slot="dropdown">
        <el-dropdown-item>黄金糕</el-dropdown-item>
        <el-dropdown-item>狮子头</el-dropdown-item>
        <el-dropdown-item>螺蛳粉</el-dropdown-item>
        <el-dropdown-item>双皮奶</el-dropdown-item>
        <el-dropdown-item>蚵仔煎</el-dropdown-item>
      </el-dropdown-menu>
    </el-dropdown> -->
    <el-button type="primary" class="btnsearch" @click="dialogVisible">查询</el-button>
    <el-button type="primary" class="btnexport" @click="exportExel">导出</el-button>
  </div>
</template>

<script>
import eventBus from "../../../utils/eventBus"
export default {
  data() {
    return {
      b:true, // 控制dialog
    }
  },
  methods:{
    dialogVisible(){
      eventBus.$emit("dialogChange",this.b)
      console.log(this.b);
    },
    exportExel(){
      this.$emit("parentExport");
    }
  }
};
</script>

<style lang="less" scoped>
    .el-dropdown-selfdefine{
        background-color:#EFF3F9;
        color: #566685;
        border: 0;
        width: 108px;
        height: 35px;
        
    }
    .btnexport{
        background-color:#1FCBB8;
        margin-left: 10px;
        height: 35px;
        width: 80px;
        border: 0;
    }
    .btnsearch{
        background-color:#4F78F6;
        margin-left: 10px;
        height: 35px;
        width: 80px;
        border: 0;
    }
</style>